home *** CD-ROM | disk | FTP | other *** search
/ ring.yamanashi.ac.jp/pub/pc/freem/action/ / action.zip / tekkyuu.zip / tekkyuu / tekkyuu.swf / scripts / DefineButton2_306 / BUTTONCONDACTION on(release).as
Text File  |  2008-02-20  |  713b  |  31 lines

  1. on(release){
  2.    Mouse.hide();
  3.    _root.gbmapx = _root.gbmapxs;
  4.    _root.gbmapy = _root.gbmapys;
  5.    _root.hx = _root.hxs;
  6.    _root.hy = _root.hys;
  7.    _root.maxbuki = _root.maxbukis;
  8.    _root.maxhp = _root.maxhps;
  9.    _root.tobira = _root.tobiras;
  10.    _root.myhp = _root.maxhp;
  11.    i = 0;
  12.    while(i < 30)
  13.    {
  14.       _root.mapst[i] = _root.mapst1[i];
  15.       i++;
  16.    }
  17.    if(_root.tobira == 1)
  18.    {
  19.       _root.attachMovie("kagi","kagi1",20);
  20.       _root.kagi1._x = 32;
  21.       _root.kagi1._y = 440;
  22.    }
  23.    if(_root.mapst[10] == 0 && _root.mapst[4] == 1)
  24.    {
  25.       _root.attachMovie("tane","tane1",30);
  26.       _root.tane1._x = 80;
  27.       _root.tane1._y = 450;
  28.    }
  29.    _root.gotoAndPlay(5);
  30. }
  31.